# 启动nginx的镜像，来构建前端的镜像
FROM nginx:latest

COPY ./build /var/deploy/fe

COPY nginx.conf /etc/nginx/conf.d/

RUN nginx -t

# 暴露这个前端的端口，赋值为6220
EXPOSE 6220

CMD ["nginx", "-g", "daemon off;"]